import Vue from 'vue'
import Router from 'vue-router'

import farmList from '@/pages/farmList'
import farmIndex from '@/pages/farmIndex'
import farmDetail from '@/pages/farmDetail'
import myAdopt from '@/pages/myAdopt'
import farmingState from '@/pages/farmingState'
import adoptClaim from '@/pages/adoptClaim'
import sureAdopt from '@/pages/sureAdopt'
import nearFarm from '@/pages/nearFarm'
import myReward from '@/pages/myReward'
//农庄租赁
import farmLease from '@/pages/farmLease'
import rentalDdetails from '@/pages/rentalDdetails'
import offlineBooking from '@/pages/offlineBooking'
import recordDetails from '@/pages/recordDetails'
import immediateLease from '@/pages/immediateLease'
//民宿
import reservationRecord from '@/pages/reservationRecord'
// 农家餐饮
import restaurantIndex from '@/pages/farmhouseRestaurant/restaurantIndex'
import restaurantDetail from '@/pages/farmhouseRestaurant/restaurantDetail'
import goodsDetail from '@/pages/farmhouseRestaurant/goodsDetail'
import shoppingCar from '@/pages/farmhouseRestaurant/shoppingCar'


//农资
import businessCircles from '@/pages/greenFinance/businessCircles'
import applicationRegistration from '@/pages/greenFinance/applicationRegistration'
import applicationRecord from '@/pages/greenFinance/applicationRecord'
import processingProgress from '@/pages/greenFinance/processingProgress'
import offshoreRegistration from '@/pages/greenFinance/offshoreRegistration'
import planFormulation from '@/pages/greenFinance/planFormulation'
import offshoreApplicationRecord from '@/pages/greenFinance/offshoreApplicationRecord'
import financialLicence from '@/pages/greenFinance/financialLicence'
import licenceApplication from '@/pages/greenFinance/licenceApplication'
import FTApplicationRecord from '@/pages/greenFinance/FTApplicationRecord'
import FTRegistration from '@/pages/greenFinance/FTRegistration'
import FTAccount from '@/pages/greenFinance/FTAccount'
import creditCard from '@/pages/greenFinance/creditCard'
import agencyRecord from '@/pages/greenFinance/agencyRecord'
import loanProcessing from '@/pages/greenFinance/loanProcessing'
import loanRecord from '@/pages/greenFinance/loanRecord'
import licenceProgress from '@/pages/greenFinance/licenceProgress'
import agencyProgress from '@/pages/greenFinance/agencyProgress'
import loanProgress from '@/pages/greenFinance/loanProgress'
import settle from '@/pages/greenFinance/settle'


//红包
import GetRedPacket from '@/pages/nav/GetRedPacket.vue';
import ShareRedPacket from '@/pages/nav/ShareRedPacket.vue';
import OpenRedPacket from '@/pages/nav/OpenRedPacket.vue';
import LogRedPacket from '@/pages/nav/LogRedPacket.vue';

//共享工厂
import factorylist from '@/pages/factorylist'


import programmeProgress from '@/pages/greenFinance/programmeProgress'
import FTApplicationProgress from '@/pages/greenFinance/FTApplicationProgress'
//商家后台
// import businessProcess from '@/pages/merchantBackstage/businessProcess'
// import offshoreProcess from '@/pages/merchantBackstage/offshoreProcess'
// import licenceProcess from '@/pages/merchantBackstage/licenceProcess'
// import FTProcess from '@/pages/merchantBackstage/FTProcess'
// import agencyProcess from '@/pages/merchantBackstage/agencyProcess'
// import loanProcess from '@/pages/merchantBackstage/loanProcess'

//农家采摘
import farmPicking from '@/pages/farmPicking'
//旅游景点
import ScenicSpotIndex from '@/pages/attraction/ScenicSpotIndex'
import travelDetails from '@/pages/attraction/travelDetails'
import playGuide from '@/pages/attraction/playGuide'
import details_of_attractions from '@/pages/attraction/details_of_attractions'
import travelRecord from '@/pages/attraction/travelRecord'
import Commodity_evaluation from '@/pages/attraction/Commodity_evaluation'
//众筹
import crowdfundingGoodsDetail from '@/pages/crowdfunding/crowdfundingGoodsDetail'
import objectStakeDetail from '@/pages/crowdfunding/objectStakeDetail'
import confirmOrder from '@/pages/crowdfunding/confirmOrder'
import bankCardInfo from '@/pages/crowdfunding/bankCardInfo'
//抽奖
import luckyDraw from '@/pages/luckyDraw.vue';



Vue.use(Router)
export default new Router({
    // mode: 'history',
    // base: '/stcwx',
    mode: 'hash',
    routes: [{
            path: '/farmingState',
            name: 'farmingState',
            component: farmingState
        },
        {
            path: '/',
            name: 'farmList',
            component: farmList
        },
        {
            path: '/farmIndex',
            name: 'farmIndex',
            component: farmIndex
        },
        {
            path: '/farmDetail',
            name: 'farmDetail',
            component: farmDetail
        },
        {
            path: '/myAdopt',
            name: 'myAdopt',
            component: myAdopt
        },
        {
            path: '/adoptClaim',
            name: 'adoptClaim',
            component: adoptClaim
        },
        {
            path: '/sureAdopt',
            name: 'sureAdopt',
            component: sureAdopt
        },
        {
            path: '/nearFarm',
            name: 'nearFarm',
            component: nearFarm
        },
        {
            path: '/myReward',
            name: 'myReward',
            component: myReward
        },
        {
            path: '/rentalDdetails',
            name: '出租详情',
            component: rentalDdetails
        },
        {
            path: '/offlineBooking',
            name: '线下预约',
            component: offlineBooking
        },
        {
            path: '/immediateLease',
            name: '立即租赁',
            component: immediateLease
        },
        {
            path: '/farmLease',
            name: 'farmLease',
            component: farmLease
        },
        {
            path: '/recordDetails',
            name: '详情信息',
            component: recordDetails
        },
        {
            path: '/reservationRecord',
            name: '预订记录',
            component: reservationRecord
        },
        {
            path: '/businessCircles',
            name: '工商注册',
            component: businessCircles
        },
        {
            path: '/applicationRegistration',
            name: '申请注册',
            component: applicationRegistration
        },
        {
            path: '/applicationRecord',
            name: '工商申请记录',
            component: applicationRecord
        },
        {
            path: '/processingProgress',
            name: '办理进度',
            component: processingProgress
        },
        {
            path: '/offshoreRegistration',
            name: '离岸注册',
            component: offshoreRegistration
        },
        {
            path: '/planFormulation',
            name: '方案制定',
            component: planFormulation
        },
        {
            path: '/offshoreApplicationRecord',
            name: '方案申请记录',
            component: offshoreApplicationRecord
        },
        {
            path: '/programmeProgress',
            name: '方案申请进度',
            component: programmeProgress
        },
        {
            path: '/financialLicence',
            name: '金融牌照',
            component: financialLicence
        },
        {
            path: '/licenceApplication',
            name: '牌照申请记录',
            component: licenceApplication
        },
        {
            path: '/licenceProgress',
            name: '牌照申请进度',
            component: licenceProgress
        },
        {
            path: '/FTAccount',
            name: 'FT账户',
            component: FTAccount
        },
        {
            path: '/FTRegistration',
            name: 'FT申请注册',
            component: FTRegistration
        },
        {
            path: '/FTApplicationProgress',
            name: 'FT申请进度',
            component: FTApplicationProgress
        },
        {
            path: '/FTApplicationRecord',
            name: 'FT申请记录',
            component: FTApplicationRecord
        },
        {
            path: '/creditCard',
            name: '信用卡代办',
            component: creditCard
        },
        {
            path: '/agencyRecord',
            name: '信用卡申请记录',
            component: agencyRecord
        },
        {
            path: '/agencyProgress',
            name: '信用卡申请进度',
            component: agencyProgress
        },
        {
            path: '/loanProcessing',
            name: '贷款办理',
            component: loanProcessing
        },
        {
            path: '/loanRecord',
            name: '贷款申请记录',
            component: loanRecord
        },
        {
            path: '/loanProgress',
            name: '贷款申请进度',
            component: loanProgress
        },
        {
            path: '/settle',
            name: '人才落户',
            component: settle
        },
        // {
        //     path: '/businessProcess',
        //     name: '工商流程操作端',
        //     component: businessProcess
        // },
        // {
        //     path: '/offshoreProcess',
        //     name: '离岸流程操作端',
        //     component: offshoreProcess
        // },
        // {
        //     path: '/licenceProcess',
        //     name: '金融牌照流程操作端',
        //     component: licenceProcess
        // },
        // {
        //     path: '/FTProcess',
        //     name: 'FT流程操作端',
        //     component: FTProcess
        // },
        // {
        //     path: '/agencyProcess',
        //     name: '信用卡流程操作端',
        //     component: agencyProcess
        // },
        // {
        //     path: '/loanProcess',
        //     name: '贷款流程操作端',
        //     component: loanProcess
        // },
        //众筹商品详情页
        {
            path: '/crowdfundingGoodsDetail',
            name: 'crowdfundingGoodsDetail',
            component: crowdfundingGoodsDetail
        },
        //项目入股详情页
        {
            path: '/objectStakeDetail',
            name: 'objectStakeDetail',
            component: objectStakeDetail
        },
        //众筹商品确认订单
        {
            path: '/confirmOrder',
            name: 'confirmOrder',
            component: confirmOrder
        },
        //众筹商品银行卡信息
        {
            path: '/bankCardInfo',
            name: 'bankCardInfo',
            component: bankCardInfo
        },

        //农家餐饮首页
        {
            path: '/restaurantIndex',
            name: 'restaurantIndex',
            component: restaurantIndex
        },
        // 农家餐饮商家详情
        {
            path: '/restaurantDetail',
            name: 'restaurantDetail',
            component: restaurantDetail
        },

        //农家餐饮商品详情
        {
            path: '/goodsDetail',
            name: 'goodsDetail',
            component: goodsDetail
        },
        //农家餐饮购物车
        {
            path: '/shoppingCar',
            name: 'shoppingCar',
            component: shoppingCar
        },
        //共享工厂
        {
            path: '/factorylist',
            name: 'factorylist',
            component: factorylist
        },
        //农家采摘
        {
            path: '/farmPicking',
            name: 'farmPicking',
            component: farmPicking,
        },
        //旅游景点
        {
            path: '/ScenicSpotIndex',
            name: '旅游景点',
            component: ScenicSpotIndex,
        },
        {
            path: '/travelDetails',
            name: '旅游详情',
            component: travelDetails,
        },
        {
            path: '/playGuide',
            name: '景点游玩指南',
            component: playGuide,
        },
        {
            path: '/details_of_attractions',
            name: '景点商品详情',
            component: details_of_attractions,
        },
        {
            path: '/travelRecord',
            name: '旅游景点记录',
            component: travelRecord,
        },
        {
            path: '/Commodity_evaluation',
            name: '旅游景点评论',
            component: Commodity_evaluation,
        },
        {
            path: '/luckyDraw',
            name: '抽奖',
            component: luckyDraw,
        },{
            path: '/GetRedPacket',
            name: '领取红包',
            component: GetRedPacket,
        },
        {
            path: '/ShareRedPacket',
            name: '分享红包',
            component: ShareRedPacket,
        },
        {
            path: '/OpenRedPacket',
            name: '拆开红包',
            component: OpenRedPacket,
        },
        {
            path: '/LogRedPacket',
            name: '红包记录',
            component: LogRedPacket,
        },

    ]
})